package zust.javaee.dto;

/**
 * Created by liy on 2017/1/4.
 */
public class AjaxReturn<T> {

    private boolean statu;

    private String msg;

    private T data;

    public AjaxReturn() {
    }

    public AjaxReturn(boolean statu) {
        this.statu = statu;
    }

    public AjaxReturn(boolean statu, T data) {
        this.statu = statu;
        this.data = data;
    }

    public AjaxReturn(boolean statu, String msg) {
        this.statu = statu;
        this.msg = msg;
    }

    public AjaxReturn(boolean statu, String msg, T data) {
        this.statu = statu;
        this.msg = msg;
        this.data = data;
    }

    public boolean isStatu() {
        return statu;
    }

    public void setStatu(boolean statu) {
        this.statu = statu;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
